package znbkTestPaperXtfx.saveXtfxPaper;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2018\4\3 0003.
 */

public class SaveSystemReviewPaperApi extends BaseApi {


    private SaveSystemReviewPaperEntity mSaveSystemReviewPaperEntity;

    public SaveSystemReviewPaperEntity getmSaveSystemReviewPaperEntity() {
        return mSaveSystemReviewPaperEntity;
    }

    public void setmSaveSystemReviewPaperEntity(SaveSystemReviewPaperEntity mSaveSystemReviewPaperEntity) {
        this.mSaveSystemReviewPaperEntity = mSaveSystemReviewPaperEntity;
    }

    public SaveSystemReviewPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);

        return httpPostServer.saveXtfxPaperItemAnswerDetail(mSaveSystemReviewPaperEntity);
    }

}